﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Mail;

namespace MAF.Mail
{
    public class MailInfo
    {
        // 枚举 邮件状态
        public enum State { WaitForSend = 0, SendFailed = -1, SendSucceed = 1 }

        // 受保护成员
        protected string _Id = string.Empty;         // 邮件标识
        protected MailMessage _MailMessage = null;   // 邮件内容
        protected State _Status = State.WaitForSend; // 邮件状态
        protected int _SendTimes = 0;                // 邮件发送次数

        // 公共方法
        public string Id
        {
            get { return _Id; }
            set { _Id = value; }
        }

        public MailMessage MailMessage
        {
            get { return _MailMessage; }
            set { _MailMessage = value; }
        }

        public State Status
        {
            get { return _Status; }
            set { _Status = value; }
        }

        public int SendTimes
        {
            get { return _SendTimes; }
            set { _SendTimes = value; }
        }
    }
}